package com.shop.admin.model.po.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 'banxia'
 * @version 1.0
 * @description TODO
 * @date 2023/2/27 11:35
 */
@Data
@ToString
public class DiscountPreDto {

    @ApiModelProperty(value = "优惠券名称")
    private String discountName;

    @ApiModelProperty(value = "优惠的门槛")
    private Long minPrice;

    @ApiModelProperty(value = "优惠的金额")
    private Long discountPrice;

    @ApiModelProperty(value = "优惠券描述")
    private String description;

    @ApiModelProperty(value = "发布时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT-8")
    private Date publishTime;

    @ApiModelProperty(value = "有效起始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT-8")
    private Date beginTime;

    @ApiModelProperty(value = "有效到期时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT-8")
    private Date endTime;

}
